home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_20376.txt < prev    next >
Text File  |  1989-02-26  |  5KB  |  193 lines

  1. -- card: 20376 from stack: in.2r
  2. -- bmap block id: 20046
  3. -- flags: 0000
  4. -- background id: 14090
  5. -- name: More Dog Ears
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=132 top=107 right=142 bottom=167
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: upper left dogear
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then pass mouseup
  23.  
  24.   -- this script handles a diagonally divided button, intended to be
  25.   --  a right dogear
  26.   put (item 1 of the clickLoc) - (item 1 of the rect of the target) into x
  27.   put (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
  28.   put card field pageNumber into tempNumber
  29.   if (x > y) then              -- click is in lower right
  30.     visual scroll right very fast to gray
  31.     visual scroll right very fast
  32.     go this card
  33.     put tempnumber+1 into card field PageNumber
  34.   else
  35.     visual scroll left very fast to gray
  36.     visual scroll left very fast
  37.     go this card
  38.     put tempnumber-1 into card field PageNumber
  39.   end if
  40. end mouseUp
  41.  
  42.  
  43.  
  44. -- part 2 (button)
  45. -- low flags: 00
  46. -- high flags: 0000
  47. -- rect: left=333 top=107 right=143 bottom=368
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: upper right dogear
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   if the optionkey is down then pass mouseup
  59.   -- this script handles a diagonally divided button, intended to be
  60.   --  a upper right dogear
  61.   put (item 3 of the rect of the target) - (item 1 of the clickLoc) into x
  62.   put  (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
  63.   put card field pageNumber into tempNumber
  64.   if (x > y) then              -- click is in lower left
  65.     visual scroll left very fast to gray
  66.     visual scroll left very fast
  67.     go this card
  68.     put tempnumber+1 into card field PageNumber
  69.   else
  70.     visual scroll right very fast to gray
  71.     visual scroll right very fast
  72.     go this card
  73.     put tempnumber-1 into card field PageNumber
  74.   end if
  75. end mouseUp
  76.  
  77.  
  78.  
  79. -- part 3 (button)
  80. -- low flags: 00
  81. -- high flags: 0000
  82. -- rect: left=132 top=258 right=294 bottom=167
  83. -- title width / last selected line: 0
  84. -- icon id / first selected line: 0 / 0
  85. -- text alignment: 1
  86. -- font id: 0
  87. -- text size: 12
  88. -- style flags: 0
  89. -- line height: 16
  90. -- part name: lower left dogear
  91. ----- HyperTalk script -----
  92. on mouseUp
  93.   if the optionkey is down then pass mouseup
  94.   -- this script handles a diagonally divided button, intended to be
  95.   --  a right dogear
  96.   put (item 3 of the rect of the target) - (item 1 of the clickLoc) into x
  97.   put  (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
  98.   put card field pageNumber into tempNumber
  99.   if (x < y) then              -- click is in upper right
  100.     visual scroll right very fast to gray
  101.     visual scroll right very fast
  102.     go this card
  103.     put tempnumber+1 into card field PageNumber
  104.   else
  105.     visual scroll left very fast to gray
  106.     visual scroll left very fast
  107.     go this card
  108.     put tempnumber-1 into card field PageNumber
  109.   end if
  110. end mouseUp
  111.  
  112.  
  113.  
  114. -- part 4 (button)
  115. -- low flags: 00
  116. -- high flags: 0000
  117. -- rect: left=333 top=257 right=294 bottom=368
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 1
  121. -- font id: 0
  122. -- text size: 12
  123. -- style flags: 0
  124. -- line height: 16
  125. -- part name: lower right dogear
  126. ----- HyperTalk script -----
  127. on mouseUp
  128.   if the optionkey is down then pass mouseup
  129.   -- this script handles a diagonally divided button, intended to be
  130.   --  a lower right dogear
  131.   put (item 1 of the clickLoc) - (item 1 of the rect of the target) into x
  132.   put (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
  133.   put card field pageNumber into tempNumber
  134.   if (x < y) then              -- click is in upper left
  135.     visual scroll left very fast to gray
  136.     visual scroll left very fast
  137.     go this card
  138.     put tempnumber+1 into card field PageNumber
  139.   else
  140.     visual scroll right very fast to gray
  141.     visual scroll right very fast
  142.     go this card
  143.     put tempnumber-1 into card field PageNumber
  144.   end if
  145. end mouseUp
  146.  
  147.  
  148.  
  149. -- part 5 (field)
  150. -- low flags: 00
  151. -- high flags: 2000
  152. -- rect: left=133 top=142 right=256 bottom=369
  153. -- title width / last selected line: 0
  154. -- icon id / first selected line: 0 / 0
  155. -- text alignment: 0
  156. -- font id: 3
  157. -- text size: 9
  158. -- style flags: 0
  159. -- line height: 12
  160. -- part name: 
  161.  
  162.  
  163. -- part 6 (field)
  164. -- low flags: 01
  165. -- high flags: 0000
  166. -- rect: left=236 top=265 right=280 bottom=284
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 0 / 0
  169. -- text alignment: 1
  170. -- font id: 3
  171. -- text size: 9
  172. -- style flags: 0
  173. -- line height: 12
  174. -- part name: PageNumber
  175.  
  176.  
  177. -- part contents for background part 5
  178. ----- text -----
  179. 2
  180.  
  181. -- part contents for background part 12
  182. ----- text -----
  183. More Dog Ears
  184.  
  185. -- part contents for card part 5
  186. ----- text -----
  187. ‚Ä¢¬†From David Dunham's "fido" which has a REAL dog-ear button. The Dog Ear acts like opposed triangle-shaped buttons.  Copy and Paste into your stacks (Delphi:  DDUNHAM; CIS 76074,762; AppleLink D0457). 
  188.   
  189. ‚Ä¢ Modified by Neil Kleeman to add upper and lower right and left buttons. Not a real big deal but a pain nevertheless.
  190.  
  191. -- part contents for card part 6
  192. ----- text -----
  193. 17